Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dummy Go packages for vendoring of C files #17

Merged
merged 2 commits into from
Oct 5, 2021

Conversation

steveruckdashel
Copy link
Contributor

Go won't vendor C files if there are no Go files present in the directory. Workaround is to add dummy Go files.

Approach from: crawshaw/sqlite#88

Fixes #13

@mvdan
Copy link

mvdan commented Feb 26, 2021

Friendly ping @karalabe, could you please take a look? I'm still fairly regularly running into this problem :)

@ohmpatel1997
Copy link

Please merge this PR. I am facing the issue when using go-ethereum .

@dlip
Copy link

dlip commented Apr 27, 2021

@karalabe I'm in need of this for go-ethereum also 🙏

Copy link

@erwanor erwanor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be very helpful to get this merged to help vendoring of downstream binaries that rely on go-ethereum somehow. Thanks for your work @karalabe 🙏

@fjl fjl changed the title work around for go vendoring of C files Add dummy Go packages for vendoring of C files Oct 5, 2021
@fjl fjl merged commit 4c5740d into karalabe:master Oct 5, 2021
@fjl
Copy link
Collaborator

fjl commented Oct 5, 2021

Sorry it took so long!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

the cgo included .h files need to be referenced by a Go package so go mod works
6 participants